package com.sds.sweng.swat.miplatform.ui.design.figures.logical;

import org.eclipse.draw2d.Graphics;
import org.eclipse.draw2d.LineBorder;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.swt.graphics.Color;

import com.sds.sweng.swat.miplatform.ui.design.figures.MLabel;
import com.sds.sweng.swat.miplatform.ui.design.utils.FontUtils;

public class LComboBoxFigure extends MLabel {

	private static final Color lineColor = new Color(null, 192, 192, 192);

	public LComboBoxFigure() {
		setBorder(new LineBorder(lineColor));
		setFont(FontUtils.DEFAULT_FONT);
	}

	protected void paintFigure(Graphics graphics) {
		super.paintFigure(graphics);

		int x = bounds.x+bounds.width-18;
		int y = bounds.y+1;

		graphics.drawImage(ImageDescriptor.createFromFile(getClass(), "images/combo.gif").createImage(), x, y);
	}

}
